package com.pucong.gitee.database.backup.common.selfenum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("服务器 操作类型枚举类")
public enum ServiceCommandType implements CommonEnum<Integer> {

    连接(0, "连接"),
    执行指令(1, "执行指令"),
    重新初始化窗口大小(2, "重新初始化窗口大小"),
    上传文件(3, "重新初始化窗口大小");

    @ApiModelProperty(value = "key",example = "0")
    private Integer key;

    @ApiModelProperty("描述")
    private String desc;

    ServiceCommandType(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name();
    }
}